export function uni_promisify(fn) {
	return (options) => new Promise((resolve, reject) => {
		options = {
			...options,
			success(res) {
				resolve(res)
			},
			fail(e) {
				console.log(e);
				reject(e)
			}
		}
		fn.call(this, options)
	})
}
